// https://nuxt.com/docs/api/configuration/nuxt-config
import path from "path";

export default defineNuxtConfig({
  srcDir: "src/",
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  alias: {
    "@": path.resolve(__dirname, "./"),
  },
  modules: ["@pinia/nuxt"],
  css: [
    "../assets/css/main.css",
    "../assets/css/tailwind.css",
    // "../assets/css/theme.scss",
  ],
  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  },
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: `@use "@/assets/css/theme.scss" as *;`,
        },
      },
    },
  },
});
